package org.goldenport.g3.drivers

import org.goldenport.util.QSymbol
import org.goldenport.g3._
import org.goldenport.g3.messages._
import org.goldenport.g3.events._

/**
 * @since   Sep. 21, 2010
 * @version Sep. 30, 2010
 * @author  ASAMI, Tomoharu
 */
@deprecated("unused")
class TimerDriver(val rule: String) extends G3Driver {
  override def driver_Activity(ctx: G3AgentContext): PartialFunction[AnyRef, AnyRef] = {
    case cmd: G3Command => execute(cmd, ctx)
  }

  protected def new_Agent(cmd: G3Command, ctx: G3AgentContext): TimerDriverAgent = {
    new TimerDriverAgent(rule, ctx)
  }
}

class TimerDriverAgent(rule: String, context: G3AgentContext) extends G3DriverAgent("timer:" + rule, context) {
  val gDataSource = context.getDataSource(uri)

  //
  def get(get: Get): G3Event = {
    error("")
  }

  def post(post: Post): G3Event = {
    error("")
  }

  def put(put: Put): G3Event = {
    error("")
  }

  def delete(delete: Delete): G3Event = {
    error("")
  }

  def mkcol(mkcol: Mkcol): G3Event = {
    error("")
  }
}

